package com.weizai.carshop.controller;


import com.weizai.carshop.common.result.ResponseResult;
import com.weizai.carshop.model.entiity.ShopCateEntity;
import com.weizai.carshop.service.ShopCateService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/user/shopCate")
public class ShopCateController {

    @Autowired
    private  ShopCateService shopCateService;

    /*
    * 查询分类列表
    * */
    @GetMapping
    public ResponseResult cateList() {
        List<ShopCateEntity> list = shopCateService.lambdaQuery().list();
        return ResponseResult.okResult(list);
    }

}
